﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LocalizedSample
{
    public class LocalizedDbContext : DbContext
    {

        public LocalizedDbContext()
            : base("LocalizedDb")
        {
            this.Configuration.LazyLoadingEnabled = true;
            this.Configuration.ProxyCreationEnabled = true;
            Database.SetInitializer(new DropCreateDatabaseIfModelChanges<LocalizedDbContext>());
        }

        public DbSet<Question> Questions
        {
            get;
            set;
        }
        //public DbSet<LocalizedQuestion> LocalizedQuestions { get; set; }
    }
}
